<?php
namespace Models;
class Student extends Model{

    public function getStudentByNumber($number) {
        $sql = 'select * from students where number ="' . $number . '"';

        $pdt = $this->pdo->query($sql);

        return $pdt->fetch(\PDO::FETCH_ASSOC);
    }
}